let a = "name"

let obj = {}
// 不能obj.a = "tom"
obj[a] = 'tom'